package com.itheima.d16_stringBuilder;

public class Test {
    public static void main(String[] args) {
        StringBuilder s = new StringBuilder(); // s ""
        StringBuilder s1 = new StringBuilder("itheima");
        s1.append("abc");
        System.out.println(s1);
        s1.insert(1,"zhansan");
        System.out.println(s1);
        StringBuilder hei = s1.append("123").insert(s1.length() - 1, "hei");
        System.out.println(hei);
        System.out.println(hei.reverse());
    }
}
